home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11741 < prev    next >
Encoding:
Text File  |  2002-07-05  |  1.9 KB  |  62 lines

  1.  
  2. <script language="JavaScript">
  3.  
  4. function onSetFilenameDisabled(test)
  5. {
  6.     if (test == true)
  7.     {
  8.         // Destination file name props
  9.         document.destForm.filenametype[0].disabled = true; 
  10.         document.destForm.filenametype[1].disabled = true; 
  11.         document.destForm.specname.disabled = true;
  12.         document.destForm.props.disabled = true; 
  13.         document.destForm.addBtn.disabled = true; 
  14.     }
  15.     else 
  16.     {
  17.         // Destination file name props
  18.         document.destForm.filenametype[0].disabled = false; 
  19.         document.destForm.filenametype[1].disabled = false;
  20.  
  21.         // disable/enable the custom file name
  22.         onSetFilename();
  23.     }
  24. }
  25.  
  26. function onSetFilename()
  27. {
  28.     // disable specific file name inputs if default is selected
  29.     var disabled = document.destForm.filenametype[0].checked;
  30.     document.destForm.specname.disabled = disabled;
  31.     document.destForm.props.disabled = disabled; 
  32.     document.destForm.addBtn.disabled = disabled; 
  33. }
  34.  
  35. </script>
  36.  
  37. <table width='100%'><tr><td class='list'>File Name:</td></tr>
  38. <tr><td>
  39. <table cellspacing=0 cellpadding=0 border=1><tr><td>
  40. <table cellpadding=5 width='100%'>
  41. %4
  42. <tr>
  43. <td class='list' valign='top'><input type='radio' name='filenametype' value='default' %1 onclick='onSetFilename()'></td>
  44. <td class='list'>Default File Name (randomly generated)<br>
  45. </tr>
  46. <tr>
  47. <td class='list' valign='top'><input type='radio' name='filenametype' value='specified' %2 onclick='onSetFilename()'></td>
  48. <td class='list' valign='top'>Specified File Name: <input type='text' name='specname' size=40 value="%3"><br>
  49. Add a placeholder for a variable property:
  50. <select class='menuFormElement' name='props'>
  51. <option value='%SI_NAME%' selected>Title
  52. <option value='%SI_ID%'>ID
  53. <option value='%SI_OWNER%'>Owner
  54. <option value='%SI_STARTTIME%'>DateTime
  55. <option value='%EXT%'>File Extension
  56. </select>
  57. <input class='list' type='button' name='addBtn' value='Add' onclick='addProperty()'>
  58. </td>
  59. </tr>
  60. </table>
  61. </td></tr></table>
  62. </td></tr></table>